package com.comac.print.component.app.gatewayimpl.database.dataobject;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 打印状态表
 * </p>
 *
 * @author yy
 * @since 2022-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("print_status")
public class StatusDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    /**
     * 打印记录id
     */
    @TableField("PRINT_RECORD_ID")
    private Integer printRecordId;

    /**
     * 状态（00-打印中   01-打印成功  02-打印失败）
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATOR")
    private String creator;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;

    /**
     * 是否删除
     */
    @TableField(value = "DELETE_FLAG", fill = FieldFill.INSERT_UPDATE)
    private Boolean deleteFlag;

    /**
     * 是否最新
     */
    @TableField(value = "IS_NEW")
    private Boolean isNew;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;


}
